<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
	.d1{
		width:100px;
		border:1px solid red;
		margin: 0 auto;
		padding: 10px 20px 30px 40px;
	}
	.d2{
		width:100px;
		border:1px solid red;
		margin: 10px 20px;
		padding: 10px 20px 30px 40px;
	}
	.d3{
		width:100px;
		border:1px solid red;
		margin: 20px 30px;
		padding: 10px 20px 30px 40px;
	}
	.d4{
		width:100px;
		border:1px solid red;
		margin: 30px 40px;
		padding: 10px 20px 30px 40px;
	}
</style>
</head>
<body>
	<div class="d1">
		<h1>标题一</h1>
	</div>
	<div class="d2">
		<h2>标题二</h2>
	
	</div>
	<div class="d3">
		<h3>标题三</h3>
	</div>
	<div class="d4">
		<h4>标题四</h4>
	</div>
	
	
</body>
</html>